/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Informacion.Usuarios.Vista;

import Informacion.Usuarios.BEAN.UsuarioBEAN;
import Informacion.Usuarios.Controlador.AgregarUsuariosControlador;
import Informacion.Usuarios.Controlador.EditarUsuariosControlador;
import sape.MenuControlador;
/**
/**
 *
 * @author melis_000
 */
public class EditarUsuarios extends javax.swing.JInternalFrame {
     public EditarUsuariosControlador controlador;
    /**
     * Creates new form EditarUsuarios
     */

    public EditarUsuarios(MenuControlador menu_controlador, UsuarioBEAN elemento) {
        initComponents();
        this.controlador=new EditarUsuariosControlador(this,menu_controlador,elemento);
    }

    private EditarUsuarios() {
       
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlPrincipal2 = new javax.swing.JPanel();
        pnlInformacionUsuario = new javax.swing.JPanel();
        lbNombre = new javax.swing.JLabel();
        tbNombre = new javax.swing.JTextField();
        lbApellidoPaterno = new javax.swing.JLabel();
        tbApellidoPaterno = new javax.swing.JTextField();
        lbApellidoMaterno = new javax.swing.JLabel();
        tbApellidoMaterno = new javax.swing.JTextField();
        lbDireccion = new javax.swing.JLabel();
        lbPuestoDeTrabajo = new javax.swing.JLabel();
        lbTelefono = new javax.swing.JLabel();
        tbTelefono = new javax.swing.JTextField();
        pnlVehiculo = new javax.swing.JPanel();
        lbTipoVehiculo = new javax.swing.JLabel();
        tbMarcaVehiculo = new javax.swing.JTextField();
        lbMarcaVehiculo = new javax.swing.JLabel();
        lbModeloVehiculo = new javax.swing.JLabel();
        tbModeloVehiculo = new javax.swing.JTextField();
        tbPlacaVehiculo = new javax.swing.JTextField();
        lbPlacaVehiculo = new javax.swing.JLabel();
        cmbTipoVehiculo = new javax.swing.JComboBox();
        btnLimpiar = new javax.swing.JButton();
        btnAceptar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        lbTelefono1 = new javax.swing.JLabel();
        lbTelefono2 = new javax.swing.JLabel();
        tbDni = new javax.swing.JTextField();
        tbMail = new javax.swing.JTextField();
        tbDireccion = new javax.swing.JTextField();
        cmbPuestoTrabajo = new javax.swing.JComboBox();
        lbTelefono3 = new javax.swing.JLabel();
        tbNombreUsuario = new javax.swing.JTextField();
        lbTipoVehiculo1 = new javax.swing.JLabel();
        cmbEstado = new javax.swing.JComboBox();

        setBorder(null);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Usuario");
        setEnabled(false);

        pnlInformacionUsuario.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Editar", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 1, 13), new java.awt.Color(0, 51, 102))); // NOI18N

        lbNombre.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbNombre.setForeground(new java.awt.Color(0, 51, 102));
        lbNombre.setText("Nombre");

        tbNombre.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbNombre.setForeground(new java.awt.Color(0, 51, 102));

        lbApellidoPaterno.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbApellidoPaterno.setForeground(new java.awt.Color(0, 51, 102));
        lbApellidoPaterno.setText("Apellido Paterno");

        tbApellidoPaterno.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbApellidoPaterno.setForeground(new java.awt.Color(0, 51, 102));
        tbApellidoPaterno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tbApellidoPaternoActionPerformed(evt);
            }
        });

        lbApellidoMaterno.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbApellidoMaterno.setForeground(new java.awt.Color(0, 51, 102));
        lbApellidoMaterno.setText("Apellido Materno");

        tbApellidoMaterno.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbApellidoMaterno.setForeground(new java.awt.Color(0, 51, 102));
        tbApellidoMaterno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tbApellidoMaternoActionPerformed(evt);
            }
        });

        lbDireccion.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbDireccion.setForeground(new java.awt.Color(0, 51, 102));
        lbDireccion.setText("Dirección");

        lbPuestoDeTrabajo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbPuestoDeTrabajo.setForeground(new java.awt.Color(0, 51, 102));
        lbPuestoDeTrabajo.setText("Puesto de Trabajo");

        lbTelefono.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTelefono.setForeground(new java.awt.Color(0, 51, 102));
        lbTelefono.setText("Teléfono");

        tbTelefono.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbTelefono.setForeground(new java.awt.Color(0, 51, 102));

        pnlVehiculo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Vehículo", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 1, 13), new java.awt.Color(0, 51, 102))); // NOI18N
        pnlVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N

        lbTipoVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTipoVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        lbTipoVehiculo.setText("Tipo");

        tbMarcaVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbMarcaVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        tbMarcaVehiculo.setEnabled(false);

        lbMarcaVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbMarcaVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        lbMarcaVehiculo.setText("Marca");

        lbModeloVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbModeloVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        lbModeloVehiculo.setText("Modelo");

        tbModeloVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbModeloVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        tbModeloVehiculo.setEnabled(false);

        tbPlacaVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbPlacaVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        tbPlacaVehiculo.setEnabled(false);

        lbPlacaVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbPlacaVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        lbPlacaVehiculo.setText("Placa");

        cmbTipoVehiculo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        cmbTipoVehiculo.setForeground(new java.awt.Color(0, 51, 102));
        cmbTipoVehiculo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AUTO", "MOTOCICLETA" }));
        cmbTipoVehiculo.setEnabled(false);

        javax.swing.GroupLayout pnlVehiculoLayout = new javax.swing.GroupLayout(pnlVehiculo);
        pnlVehiculo.setLayout(pnlVehiculoLayout);
        pnlVehiculoLayout.setHorizontalGroup(
            pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVehiculoLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbTipoVehiculo)
                    .addComponent(lbModeloVehiculo))
                .addGap(79, 79, 79)
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cmbTipoVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbModeloVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37)
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbMarcaVehiculo)
                    .addComponent(lbPlacaVehiculo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(tbMarcaVehiculo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbPlacaVehiculo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnlVehiculoLayout.setVerticalGroup(
            pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVehiculoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbMarcaVehiculo)
                    .addComponent(lbTipoVehiculo)
                    .addComponent(cmbTipoVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbMarcaVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVehiculoLayout.createSequentialGroup()
                        .addGap(13, 13, 13)
                        .addGroup(pnlVehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tbModeloVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbPlacaVehiculo)
                            .addComponent(tbPlacaVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlVehiculoLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lbModeloVehiculo)))
                .addContainerGap())
        );

        btnLimpiar.setFont(new java.awt.Font("Segoe UI", 1, 13)); // NOI18N
        btnLimpiar.setForeground(new java.awt.Color(0, 51, 102));
        btnLimpiar.setText("Limpiar");
        btnLimpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarActionPerformed(evt);
            }
        });

        btnAceptar.setFont(new java.awt.Font("Segoe UI", 1, 13)); // NOI18N
        btnAceptar.setForeground(new java.awt.Color(0, 51, 102));
        btnAceptar.setText("Aceptar");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        btnCancelar.setFont(new java.awt.Font("Segoe UI", 1, 13)); // NOI18N
        btnCancelar.setForeground(new java.awt.Color(0, 51, 102));
        btnCancelar.setText("Cancelar");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        lbTelefono1.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTelefono1.setForeground(new java.awt.Color(0, 51, 102));
        lbTelefono1.setText("Mail");

        lbTelefono2.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTelefono2.setForeground(new java.awt.Color(0, 51, 102));
        lbTelefono2.setText("DNI");

        tbDni.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbDni.setForeground(new java.awt.Color(0, 51, 102));

        tbMail.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbMail.setForeground(new java.awt.Color(0, 51, 102));

        tbDireccion.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbDireccion.setForeground(new java.awt.Color(0, 51, 102));

        cmbPuestoTrabajo.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        cmbPuestoTrabajo.setForeground(new java.awt.Color(0, 51, 102));
        cmbPuestoTrabajo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmbPuestoTrabajo.setEnabled(false);

        lbTelefono3.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTelefono3.setForeground(new java.awt.Color(0, 51, 102));
        lbTelefono3.setText("NombreUsuario");

        tbNombreUsuario.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        tbNombreUsuario.setForeground(new java.awt.Color(0, 51, 102));

        lbTipoVehiculo1.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        lbTipoVehiculo1.setForeground(new java.awt.Color(0, 51, 102));
        lbTipoVehiculo1.setText("Estado");

        cmbEstado.setFont(new java.awt.Font("Segoe UI", 0, 13)); // NOI18N
        cmbEstado.setForeground(new java.awt.Color(0, 51, 102));
        cmbEstado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmbEstado.setEnabled(false);

        javax.swing.GroupLayout pnlInformacionUsuarioLayout = new javax.swing.GroupLayout(pnlInformacionUsuario);
        pnlInformacionUsuario.setLayout(pnlInformacionUsuarioLayout);
        pnlInformacionUsuarioLayout.setHorizontalGroup(
            pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlInformacionUsuarioLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(162, 162, 162))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlInformacionUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbNombre)
                    .addComponent(lbApellidoPaterno)
                    .addComponent(lbApellidoMaterno)
                    .addComponent(lbPuestoDeTrabajo)
                    .addComponent(lbTelefono3))
                .addGap(30, 30, 30)
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(tbNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbApellidoMaterno, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbApellidoPaterno, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbPuestoTrabajo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(44, 44, 44)
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbTelefono)
                    .addComponent(lbTelefono1)
                    .addComponent(lbDireccion)
                    .addComponent(lbTelefono2)
                    .addComponent(lbTipoVehiculo1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(tbMail, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbDireccion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbDni, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tbTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
            .addComponent(pnlVehiculo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        pnlInformacionUsuarioLayout.setVerticalGroup(
            pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlInformacionUsuarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlInformacionUsuarioLayout.createSequentialGroup()
                        .addComponent(tbDni, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(tbDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbDireccion))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbTelefono1)
                            .addComponent(tbMail, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tbTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbTelefono))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlInformacionUsuarioLayout.createSequentialGroup()
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbNombre)
                            .addComponent(tbNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbTelefono2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tbApellidoPaterno, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbApellidoPaterno))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tbApellidoMaterno, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbApellidoMaterno))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cmbPuestoTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbPuestoDeTrabajo))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(tbNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbTelefono3)
                            .addComponent(lbTipoVehiculo1)
                            .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)))
                .addComponent(pnlVehiculo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlInformacionUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlPrincipal2Layout = new javax.swing.GroupLayout(pnlPrincipal2);
        pnlPrincipal2.setLayout(pnlPrincipal2Layout);
        pnlPrincipal2Layout.setHorizontalGroup(
            pnlPrincipal2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlPrincipal2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlInformacionUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlPrincipal2Layout.setVerticalGroup(
            pnlPrincipal2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlPrincipal2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlInformacionUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlPrincipal2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlPrincipal2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 2, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tbApellidoPaternoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tbApellidoPaternoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tbApellidoPaternoActionPerformed

    private void tbApellidoMaternoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tbApellidoMaternoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tbApellidoMaternoActionPerformed

    private void btnLimpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarActionPerformed
        
    }//GEN-LAST:event_btnLimpiarActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed
        this.controlador.aceptar();
    }//GEN-LAST:event_btnAceptarActionPerformed

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed

    }//GEN-LAST:event_btnCancelarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(EditarUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(EditarUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(EditarUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(EditarUsuarios.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new EditarUsuarios().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnLimpiar;
    public javax.swing.JComboBox cmbEstado;
    public javax.swing.JComboBox cmbPuestoTrabajo;
    public javax.swing.JComboBox cmbTipoVehiculo;
    private javax.swing.JLabel lbApellidoMaterno;
    private javax.swing.JLabel lbApellidoPaterno;
    private javax.swing.JLabel lbDireccion;
    private javax.swing.JLabel lbMarcaVehiculo;
    private javax.swing.JLabel lbModeloVehiculo;
    private javax.swing.JLabel lbNombre;
    private javax.swing.JLabel lbPlacaVehiculo;
    private javax.swing.JLabel lbPuestoDeTrabajo;
    private javax.swing.JLabel lbTelefono;
    private javax.swing.JLabel lbTelefono1;
    private javax.swing.JLabel lbTelefono2;
    private javax.swing.JLabel lbTelefono3;
    private javax.swing.JLabel lbTipoVehiculo;
    private javax.swing.JLabel lbTipoVehiculo1;
    private javax.swing.JPanel pnlInformacionUsuario;
    private javax.swing.JPanel pnlPrincipal2;
    private javax.swing.JPanel pnlVehiculo;
    public javax.swing.JTextField tbApellidoMaterno;
    public javax.swing.JTextField tbApellidoPaterno;
    public javax.swing.JTextField tbDireccion;
    public javax.swing.JTextField tbDni;
    public javax.swing.JTextField tbMail;
    public javax.swing.JTextField tbMarcaVehiculo;
    public javax.swing.JTextField tbModeloVehiculo;
    public javax.swing.JTextField tbNombre;
    public javax.swing.JTextField tbNombreUsuario;
    public javax.swing.JTextField tbPlacaVehiculo;
    public javax.swing.JTextField tbTelefono;
    // End of variables declaration//GEN-END:variables
}
